Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display error if editing non-current order #3391

Merged
merged 1 commit into from
Nov 7, 2019

Conversation

JDutil
Copy link
Contributor

@JDutil JDutil commented Oct 23, 2019

Users can input any order id within the orders controller routing, but
we simply render the cart with the current order. This can cause some
users confusion if they are expecting to edit an existing order after
viewing it's receipt.

So let's simply display a flash message indicating you cannot edit
existing orders if the routing id does not match the current order.

fixes #2078

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)

core/config/locales/en.yml Outdated Show resolved Hide resolved
@JDutil JDutil force-pushed the fixes-2078 branch 5 times, most recently from 5e8d7fd to a16cb2f Compare October 23, 2019 22:57
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, just left a question. let me know your thoughts!

frontend/app/controllers/spree/orders_controller.rb Outdated Show resolved Hide resolved
@JDutil JDutil force-pushed the fixes-2078 branch 2 times, most recently from 1d31f07 to df940bd Compare October 29, 2019 20:51
Users can input any order id within the orders controller routing, but
we simply render the cart with the current order. This can cause some
users confusion if they are expecting to edit an existing order after
viewing it's receipt.

So let's simply display a flash message indicating you cannot edit
existing orders if the routing id does not match the current order.
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @JDutil!

@kennyadsl kennyadsl merged commit a58e7f8 into solidusio:master Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edit path for completed orders
5 participants